<?php
    
    include_once './secret_key.php';
    include_once './constants.php';

    /**
     * The URL of the application at FB site. 
     */
    define('FB_APP_URL', 'http://apps.facebook.com/situare/');
    define('REQ_PERMS', 'publish_stream');
    
    define('MAX_ATTEMPTS', 5);      // max. 5 attempts
    define('ATTEMPT_INTERVAL', 5);  // interval between each attempt is 5 seconds
    
    define('HOME_ROOT_URL', 'http://' . $_SERVER['SERVER_NAME']);
    define('HOME_URL', 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['PHP_SELF']);
    define('DEFAULT_NEXT_URL', 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['PHP_SELF']);
    define('DEFAULT_CANCEL_URL', 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['PHP_SELF']);
    
	define('DEFAULT_PROFILE_PHOTO_URL', 'http://static.ak.fbcdn.net/pics/q_default.gif');
    define('DATE_FORMAT', 'j.M.Y H:i:s e P');
    define('MAP_DEFAULT_ZOOM_LEVEL', '15');
    define('RESOURCES_DIR_PATH', './resources/');
    define('WALK_CAR_BORDER', 5);               // 5km
    define('CAR_AEROPLANE_BORDER', 500);        // 500km
    define('AEROPLANE_ROCKET_BORDER', 5000);    // 5000km
    define('CENTER_MAP_INTERVAL', 30000);  // interval between centering map

    define('ATTACHMENT_TMP_DIR', './attachments_tmp');
?>